package com.lzhsite.technology.jsoup;

import java.io.IOException;

import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;

public class JsoupXTest {
	
	public static void main(String[] args) throws IOException {
		// DocumentX doc = JsoupX.parse(html);

		String url = "http://www.soku.com/v?keyword=%E4%BB%81%E6%98%BE%E7%8E%8B%E5%90%8E%E7%9A%84%E7%94%B7%E4%BA%BA";

		DocumentX doc = JsoupX.connect(url).get();

		Elements els = doc.byTag("div").byAttr("class", "sk_result").currentEles();

		// System.out.println(els.html());

		for (Element el : els) {
		  System.out.println(el.html());
		}
	}
}
